package com.zhiyan.common.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

public class ServletContextHolder {
	
	public static HttpServletRequest getRequest(){
		ServletRequestAttributes requestAttr = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
		HttpServletRequest request = requestAttr.getRequest();
		return request;
	}
	
	public static HttpServletResponse getResponse(){
		return null;	//未实现
	}

}
